﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SGRapidForm.Permission.Service.Interface;
using Microsoft.Practices.Unity;
using SGRapidForm.Permission.Component;
using SGRapidForm.Permission.Entity;

namespace SGRapidForm.Permission.Service
{
    public partial class PermissionService : IPermissionService
    {
        [Dependency]
        public HelpCategoryComponent HelpCategoryComponent
        { get; set; }


        public bool HelpCategory_Add(HelpCategory helpcategory)
        {
            return this.HelpCategoryComponent.HelpCategory_Add(helpcategory);
        }

        public Entity.HelpCategory HelpCategory_GetByKeyid(string keyid)
        {
            return this.HelpCategoryComponent.HelpCategory_GetByKeyid(keyid);
        }

        public bool HelpCategory_Update(HelpCategory helpcategory)
        {
            return this.HelpCategoryComponent.HelpCategory_Update(helpcategory);
        }

        public List<HelpCategory> HelpCategory_GetAll()
        {
            return this.HelpCategoryComponent.HelpCategory_GetAll();
        }

        public bool HelpCategory_Delete(string keyid)
        {
            return this.HelpCategoryComponent.HelpCategory_Delete(keyid);
        }


        public List<HelpCategory> HelpCategory_GetByParentKeyid(string parentkeyid)
        {
            return this.HelpCategoryComponent.HelpCategory_GetByParentKeyid(parentkeyid);
        }


        public List<HelpCategory> HelpCategory_GetCategoryAll()
        {
            return this.HelpCategoryComponent.HelpCategory_GetCategoryAll();
        }
    }
}
